import request from '@/utils/request'

export function getList(params) {
	return request({
		url: '/quickReport/list',
		method: 'get',
		params
	})
}

export function handleAdd(data) {
	return request({
		url: '/quickReport',
		method: 'post',
		data
	})
}

export function handleDelete(data) {
	return request({
		url: '/quickReport/' + data,
		method: 'Delete',
	})
}
export function handleEdit(data) {
	return request({
		url: '/quickReport',
		method: 'put',
		data
	})
}

export function getDetails(params) {
	return request({
		url: '/quickReport/' + params,
		method: 'get',
	})
}


// 查询省市区
export function getCity() {
	return request({
		url: '/chinaArea/list',
		method: 'get'
	})
}

// 获取经纬度
export function getLnglat(data) {
	return request({
		url: '/addressToMap/addressMap',
		method: 'post',
		data: data
	})
}
// 设备对象
export function getDevice(params) {
	return request({
		url: '/device/drillDevice',
		method: 'get',
		params
	})
}

// 推送标识 
export function getEewPushIndex(data) {
	return request({
		url: '/drillReportPushTotalLog',
		method: 'post',
		data
	})
}

// 推送 
export function handleEewPush(data) {
	return request({
		url: '/drillReportPushLog',
		method: 'post',
		data
	})
}

// 推送记录
export function getPushLog(data) {
	return request({
		url: '/drillReportPushTotalLog/byDrillId/' + data,
		method: 'get',
	})
}

// 推送失败记录
export function getFailLog(params) {
	return request({
		url: '/drillReportPushLog/logList',
		method: 'get',
		params
	})
}